<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <script>
        $.ajax({
            url:"http://192.168.4.18:7000/ad",
            method:"get",
            dataType:"jsonp",
            success:res=>{
                console.log(res);
            }
        })

        var script = document.createElement("script");
        script.src = "http://192.168.4.18:7000/ad?&callback=handleResponse";
        document.body.prepend(script);
        function handleResponse(res) {
            // 对response数据进行操作代码
            console.log(res)
        }
    </script>
</body>
</html>